<!DOCTYPE HTML>
<!--
  Dopetrope 2.0 by HTML5 UP
  html5up.net | @n33co
  Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-->
<html>
  <head>
    <title>Event Flairs gadget</title>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <meta name="description" content="" />
    <meta name="keywords" content="" />
    <link href="http://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,700,900,300italic" rel="stylesheet" />
    <script src="js/jquery.min.js"></script>
    <script src="js/jquery.dropotron.js"></script>
    <script src="js/config.js"></script>
    <script src="js/skel.min.js"></script>
    <script src="js/skel-panels.min.js"></script>
    <script src="js/ZeroClipboard.min.js"></script>
    <script src="js/sets.js"></script>
    <noscript>
      <link rel="stylesheet" href="css/skel-noscript.css" />
      <link rel="stylesheet" href="css/style.css" />
      <link rel="stylesheet" href="css/style-desktop.css" />
    </noscript>
    <link rel="stylesheet" href="css/index.css" />
    <!--[if lte IE 8]><script src="js/html5shiv.js"></script><link rel="stylesheet" href="static/css/ie8.css" /><![endif]-->
  </head>
  <body class="homepage">

    <!-- Header Wrapper -->
      <div id="header-wrapper">
        <div class="container">
          <div class="row">
            <div class="12u">
            
              <!-- Header -->
                <section id="header">
                  
                  <!-- Logo -->
                    <h1><a href="#">Event Flairs</a></h1>
                  
                  <!-- Nav -->
                    <nav id="nav">
                      <ul>
                        <li class="current_page_item"><a href="#">Home</a></li>
                        <li><a href="#install">Install</a></li>
                        <li><a href="#custom">Custom Flairs</a></li>
                        <li><a href="choose">My Flairs</a></li>
                        <li><a href="#support">Support</a></li>
                        <li><a href="#contrib">Contribute</a></li>
                        <li>
                        <div>
                        <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
                        <input type="hidden" name="cmd" value="_s-xclick">
                        <input type="hidden" name="hosted_button_id" value="3XDC3DJKK36WQ">
                        <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_SM.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
                        <img alt="" border="0" src="https://www.paypalobjects.com/fr_FR/i/scr/pixel.gif" width="1" height="1">
                        </form>
                        </div>

                        </li>
                      </ul>
                    </nav>

                </section>

            </div>
          </div>
          <div class="row">
            <div class="12u">

              <!-- Banner -->
                <section id="banner">
                  <a href="/">
                    <span class="image image-full"><img src="images/flairs.jpg" alt="" /></span>
                    <header>
                      <h2>Event Flairs</h2>
                      <span class="byline">(working) Event Flairs gadget for Google Calendar</span>
                      <section>
                      <br/>
                      <a href="https://www.google.com/calendar/render?gadgeturl=https://eventflairs.appspot.com/static/flairs.xml">
                      <span class="install-button">
                      Quick install !</span></a>
                      </section>
                    </header>
                  </a>
                </section>

            </div>
          </div>
        </div>
      </div>
    
    <!-- Main Wrapper -->
      <div id="main-wrapper">
        <div class="container">
          <div class="row">
            <div class="12u">
              

                <section>
                  <div>
                    <div class="row">
                      <div class="12u">
                        <section class="box" id="install">
                          <a class="image image-full" href="https://www.google.com/calendar/render?gadgeturl=https://eventflairs.appspot.com/static/flairs.xml"><img src="images/yesgadget.jpg" alt="" /></a>
                          <header>
                            <h3>How to install Event Flairs gadget</h3>
                          </header>
                          <p>
                          <ol class="square">
                          <li>Logon to your calendar.</li>
                          <li>If you're using the original event flairs lab, deactivate it</li>
                          <li>Click on this <a href="https://www.google.com/calendar/render?gadgeturl=https://eventflairs.appspot.com/static/flairs.xml">link</a>, this will open a Calendar window, asking if you want to install the gadget.</li>
                          <li>Once installed it will appear on the right side.</li>
                          <li>You'll see an "Authorize" button, click on it to authorize gadget to manage your events in order to add or remove event flairs</li>
                          <li>"Authorize" button has disappeared ? Great, you're ready to use event flairs. Select an event, click on an icon, it will appear on the event</li>
                          <li>"This is not what I see, this is not what I get, something is wrong, help !". Join Event Flairs <a href="https://groups.google.com/forum/#!forum/event-flairs">group</a> and explain what's going on !</li>
                          </ol>
                          </p>

                          <header>
                            <h3 id="custom">Import a custom flairs set !</h3>
                          </header>
                          <p>
			  <b>NEW</b>: <a href="choose">Choose</a> your favorite icons amongst thousands available and build your own flairs set.
                          </p>
			  <p>
                          Custom flairs sets are user-defined set of icons you can use to enrich gadget. Simply select the one you want to use, click on "Copy", go back to your gadget and click on "Import" button <img src="static/images/import.gif">. Paste the set description and that's it ! Also have a nice one ? <a href="https://groups.google.com/forum/#!forum/event-flairs">Join</a> the group and share!
			  </p>
                          <p>
                          <div id="sets" class="row">
                          </div>
                          </p>


                        </section>
                      </div>
                    </div>


                    <div class="row">
                      <div class="6u">
                        <section class="box" id="support">
                          <a class="image image-full" href="https://groups.google.com/forum/#!forum/event-flairs"><img src="images/postquestion.jpg" alt="" /></a>
                          <header>
                            <h3>How to get help</h3>
                          </header>
                          <p>"I followed installation instruction, but it just won't work..." Keep calm, breathe deeply, join the Event Flairs <a href="https://groups.google.com/forum/#!forum/event-flairs">group</a> and explain your issue.</p>
                        </section>
                      </div>
                      <div class="6u">
                        <section class="box" id="contrib">
                          <a class="image image-full" href="https://code.google.com/p/event-flairs/"><img src="images/contrib.jpg" alt="" /></a>
                          <header>
                            <h3>How to contribute</h3>
                          </header>
                          <p>You can join the project and help in many different ways. Starting by providing help on the group. If you're more technical, <a href="https://code.google.com/p/event-flairs/">become</a> a committer and help fixing bugs and developing new features.</p>
                        </section>
                      </div>
                    </div>
                  </div>
                </section>
              
            </div>
          </div>
        </div>
      </div>

    <!-- Footer Wrapper -->
      <div id="footer-wrapper">
        
        <!-- Footer -->
          <section id="footer" class="container">
            <div class="row">
              <div class="8u">

              </div>
              <div class="4u">
              
                <section>
                  <header>
                    <h2>About</h2>
                  </header>
                  <p>
                  Event Flairs gadget is a replacement of original Event Flairs lab for Google Calendar. Event Flairs are used
                  to add little icons to events. Original lab hasn't been working properly lately so this gadget is an alternative
                  solution.
                  </p>
                  <p>
                  Event Flairs gadget is an open source project, powered by enthousiastic people and volunteers. 
                  </p>
                </section>
              
              </div>
              <div class="4u">

                <section>
                  <header>
                    <h2>Disclaimer</h2>
                  </header>
                  <p>
                  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
                  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
                  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
                  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
                  OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
                  ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
                  OTHER DEALINGS IN THE SOFTWARE.
                  </p>
                </section>

              </div>
              <div class="4u">
              
                <section>
                  <header>
                    <h2>Be social</h2>
                  </header>
                  <ul class="social">
                    <li class="facebook"><a href="#" class="icon48 icon48-1">Facebook</a></li>
                    <li class="twitter"><a href="http://twitter.com/n33co" class="icon48 icon48-2">Twitter</a></li>
                    <li class="dribbble"><a href="http://dribbble.com/n33" class="icon48 icon48-3">Dribbble</a></li>
                    <li class="linkedin"><a href="#" class="icon48 icon48-4">LinkedIn</a></li>
                    <li class="googleplus"><a href="#" class="icon48 icon48-6">Google+</a></li>
                  </ul>
                  <ul class="contact">
                    <li>
                      <h3>Mail</h3>
                      <p><a href="#">eventflairs[at]gmail.com</a></p>
                    </li>
                  </ul>
                </section>
              
              </div>
            </div>
            <div class="row">
              <div class="12u">
              
                <!-- Copyright -->
                  <div id="copyright">
                    <ul class="links">
                      <li>&copy; Sebastien Lelong</li>
                      <li>Design: <a href="http://html5up.net">HTML5 UP</a></li>
                    </ul>
                  </div>

              </div>
            </div>
          </section>
        
      </div>
  <script>
    (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
    (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
    m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
    })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
  
    ga('create', 'UA-42714430-1', 'eventflairs.appspot.com');
    ga('send', 'pageview');
  </script>
          <script>
	  var SETS_PER_ROW = 6;
          var FLAIRS_PER_ROW = 8;
	  var setcnt = 0;
          for(var idx in sets)
          {
            var set = sets[idx];
            var id = set['name'].replace(" ","");
            var div3u = document.createElement("div");
            div3u.setAttribute("style","text-align:center;");
            div3u.setAttribute("class","2u");

            var h4 = document.createElement("h4");
            h4.textContent = set['name'];
            div3u.appendChild(h4);

            var diva = document.createElement("div");
            diva.innerHTML = "Author: " + set['author'];
            div3u.appendChild(diva);

            var divd = document.createElement("div");
            divd.innerHTML = set['description'];
            div3u.appendChild(divd);

            var but = document.createElement("button");
            but.setAttribute("id",id + '-button');
            but.setAttribute("data-clipboard-text",JSON.stringify(set['def']));
            but.textContent = "Copy flairs set !";
            if(set['def'])
              div3u.appendChild(but);

            var divn = document.createElement("div");
            divn.setAttribute("id",id + '-button-next');
            divn.setAttribute("style","display:none;text-align:center;background:darkblue;color:white;font-size:0.8em;");
            divn.textContent = 'Go back to gadget, click "import" and paste';
            div3u.appendChild(divn);

            var divf = document.createElement("div");
            divf.setAttribute("id",id + '-flairs');
            div3u.appendChild(divf);

            var scr = document.createElement("script");
            scr.textContent = 'var clip = new ZeroClipboard( document.getElementById("' + id + '-button' + '"), { ' +
              '    moviePath: "/js/ZeroClipboard.swf" ' +
              ' } ); ' +
              ' clip.on( "complete", function(client, args) { ' + 
              '   this.style.display = "none"; ' +
              '   document.getElementById(this.id + "-next").style.display = "block"; ' +
              ' } ); ';
            div3u.appendChild(scr);
            
            if(!(setcnt%SETS_PER_ROW))
            {
              var br = document.createElement("br");
              document.getElementById("sets").appendChild(br);
            }
            document.getElementById("sets").appendChild(div3u);
	    setcnt++;

            var cnt = 0;
            for(var root in set['def'])
            {
              for(var idx in set['def'][root])
              {
                var img = document.createElement("img");
                img.setAttribute("src",root + set['def'][root][idx]);
                img.setAttribute("height",16);
                img.setAttribute("width",16);
		img.setAttribute("class","icon");
                if(!(cnt%FLAIRS_PER_ROW))
                {
                  var br = document.createElement("br");
                  document.getElementById(id + '-flairs').appendChild(br);
                }
                document.getElementById(id + '-flairs').appendChild(img);
                cnt++;
              }
            }
          }
          </script>

  </body>
</html>
